<?php
/**
 * Created by PhpStorm.
 * User: wzy12
 * Date: 2018/10/19
 * Time: 14:17
 */

namespace app\admin\validate;


use think\Validate;

class FreightTemplate extends Validate
{
    protected $rule = [
        'name|模板名称'  =>  'require',
        'type'  =>  'require',
        'is_enable_default' => 'require'
    ];

    protected $message = [
        '__token__.require'  =>  '请不要进行非法操作',
        'type.require'  =>  '请不要进行非法操作',
        'is_enable_default.require'  =>  '请不要进行非法操作',
    ];

    protected $scene = [
        'del' => ['__token__'],
    ];
}